package com.circus.trace.bean.material;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Comment;
import org.nutz.dao.entity.annotation.One;
import org.nutz.dao.entity.annotation.Table;

import com.circus.trace.bean.CricusEntity;
import com.circus.trace.bean.material.area.Manor;
import com.circus.trace.bean.material.area.Storage;
import com.circus.trace.bean.material.transport.Transport;

@Table("t_coffee")
@Comment("咖啡豆(原料)")
public class Coffee extends CricusEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Column("c_name")
	@Comment("原料名称")
	private String name;

	@Column("c_diff_rate")
	@Comment("瑕疵率")
	private double defectiveRate;

	@Column("s_water_rate")
	@Comment("含水率")
	private double rateOfWaterContent;

	@Column("c_density")
	@Comment("密度")
	private double density;

	@Column("c_monar_id")
	@Comment("庄园id")
	private long manorId;

	@Column("c_storage_id")
	@Comment("仓储id")
	private long storageId;
	
	@Column("c_transport_id")
	@Comment("进出口信息id")
	private long transportId;
	
	@One
	private Manor manor;
	
	@One
	private Storage storage;
	
	@One
	private Transport transport;
	
	
	
	

	public Manor getManor() {
		return manor;
	}

	public void setManor(Manor manor) {
		this.manor = manor;
	}

	public Storage getStorage() {
		return storage;
	}

	public void setStorage(Storage storage) {
		this.storage = storage;
	}

	public Transport getTransport() {
		return transport;
	}

	public void setTransport(Transport transport) {
		this.transport = transport;
	}

	public long getTransportId() {
		return transportId;
	}

	public void setTransportId(long transportId) {
		this.transportId = transportId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public double getDefectiveRate() {
		return defectiveRate;
	}

	public void setDefectiveRate(double defectiveRate) {
		this.defectiveRate = defectiveRate;
	}

	public double getRateOfWaterContent() {
		return rateOfWaterContent;
	}

	public void setRateOfWaterContent(double rateOfWaterContent) {
		this.rateOfWaterContent = rateOfWaterContent;
	}

	public double getDensity() {
		return density;
	}

	public void setDensity(double density) {
		this.density = density;
	}

	public long getManorId() {
		return manorId;
	}

	public void setManorId(long manorId) {
		this.manorId = manorId;
	}

	public long getStorageId() {
		return storageId;
	}

	public void setStorageId(long storageId) {
		this.storageId = storageId;
	}

}
